#include "kline.h"

KLine::KLine()
{
}

void KLine::OnLButtonDown(QGraphicsSceneMouseEvent *event)
{
    setLine(QLineF(event->scenePos(), event->scenePos()));
}

void KLine::OnLButtonDblClk(QGraphicsSceneMouseEvent *event)
{

}

void KLine::OnLButtonUp(QGraphicsSceneMouseEvent *event)
{
    QLineF newLine(line().p1(), event->scenePos());
    setLine(newLine);
}

void KLine::OnMouseMove(QGraphicsSceneMouseEvent *event)
{

}

void KLine::OnEditProperties()
{

}

void KLine::OnCancel()
{

}


